//package com.demo.frame.common.config;
//
//import com.baomidou.mybatisplus.annotation.DbType;
//import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
//import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.transaction.annotation.EnableTransactionManagement;
//
///**
// * desc
// *
// * @author lw007
// * @date 2021/12/22
// */
//@EnableTransactionManagement
//@Configuration
//public class MybatisPlusConfig {
//    /*@Bean
//    public MybatisPlusInterceptor paginationInterceptor() {
//        return new MybatisPlusInterceptor();
//    }*/
//
//    @Bean
//    public MybatisPlusInterceptor innerInterceptor() {
//        MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
//        interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MYSQL));
//        return interceptor;
//    }
//}
